package pers.corvey.studyjava.dao;

import org.springframework.data.repository.CrudRepository;

import pers.corvey.studyjava.model.Course;

public interface CourseDAO extends CrudRepository<Course, String> {

    Iterable<Course> findByCategoryId(String categoryId);
    Iterable<Course> findByTitleLike(String title);
}
